// 树木风格卡片样式
.tree-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(56, 142, 60, 0.1);
  border: 1px solid rgba(56, 142, 60, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  
  // 添加树木风格纹理背景
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(56, 142, 60, 0.05) 25%, transparent 25%, transparent 50%, rgba(56, 142, 60, 0.05) 50%, rgba(56, 142, 60, 0.05) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    opacity: 0.03;
    pointer-events: none;
  }
  
  // 卡片标题样式
  .card-header {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(56, 142, 60, 0.1);
    
    h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #388E3C;
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #388E3C, #4CAF50);
        border-radius: 3px;
      }
    }
  }
  
  // 卡片内容区域
  .card-content {
    position: relative;
    z-index: 1;
  }
  
  // 悬停效果
  &:hover {
    box-shadow: 0 4px 20px 0 rgba(56, 142, 60, 0.15);
    transform: translateY(-2px);
    
    .card-header h3::after {
      width: 80px;
    }
  }
}

// 树木风格按钮样式
.tree-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  
  // 主要按钮样式
  &.primary {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
    color: #fff;
    border-color: #388E3C;
    box-shadow: 0 2px 4px rgba(56, 142, 60, 0.2);
    
    // 添加纹理覆盖层
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
      background-size: 10px 10px;
      opacity: 0.1;
      pointer-events: none;
    }
    
    &:hover {
      background: linear-gradient(135deg, #2E7D32, #388E3C);
      box-shadow: 0 4px 8px rgba(56, 142, 60, 0.3);
      transform: translateY(-1px);
    }
    
    &:active {
      transform: translateY(0);
      box-shadow: 0 2px 4px rgba(56, 142, 60, 0.2);
    }
  }
  
  // 次要按钮样式
  &.secondary {
    background: transparent;
    color: #388E3C;
    border-color: #388E3C;
    
    &:hover {
      background: rgba(56, 142, 60, 0.1);
      color: #2E7D32;
    }
  }
  
  // 幽灵按钮样式
  &.ghost {
    background: transparent;
    color: #388E3C;
    border: none;
    
    &:hover {
      background: rgba(56, 142, 60, 0.05);
      color: #2E7D32;
    }
  }
}

// 树木风格表单元素
.tree-form {
  .el-form-item__label {
    color: #388E3C;
    font-weight: 500;
  }
  
  .el-input__inner {
    border-color: rgba(56, 142, 60, 0.2);
    
    &:focus {
      border-color: #388E3C;
      box-shadow: 0 0 0 2px rgba(56, 142, 60, 0.1);
    }
  }
  
  .el-textarea__inner {
    border-color: rgba(56, 142, 60, 0.2);
    
    &:focus {
      border-color: #388E3C;
      box-shadow: 0 0 0 2px rgba(56, 142, 60, 0.1);
    }
  }
  
  .el-select .el-input.is-focus .el-input__inner {
    border-color: #388E3C;
  }
  
  .el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #388E3C;
    border-color: #388E3C;
  }
  
  .el-radio__input.is-checked .el-radio__inner {
    background-color: #388E3C;
    border-color: #388E3C;
  }
}